package com.doeis.uwork.entity.mongo;

import java.sql.Timestamp;

import com.voland.core.annotation.Associate;
import com.voland.core.annotation.Table;
import com.voland.core.db.Entity;

/**
 * 群里聊实体类
 * @author nortan
 *
 */
@Table(name="group_msg")
public class GroupMsg extends Entity implements Cloneable {
	
	private String id;	
	private String fromUser;//from userid json数据
	private String toUser;//json数据
	private String userId;//这条信息属于谁
	
	private Integer sourceType;//共享信息类型
	private String  msceneType;//小场景
	private String  sourceId;//可能是指数，模板，统计图
	private String  shareid;//共享信息编号
	private Timestamp created_at;
	private String  msgType;//是否是图片 1、文字 2、图片

	private String content;
	private String img;
	
	private String identification;//标识
	
	@Associate
	private String error;
	@Associate
	private String from;
	@Associate
	private String to;
	@Associate
	private String switchboard_id;
	@Associate
	private String sourceName;
	@Associate
	private Integer page;//共享信息类型
	@Associate
	private String head_pic;//用户头像url
	@Associate
	private String group_avatar;//群头像url
	@Associate
	private Integer skin;

	@Associate
	private Integer count;
	@Associate
	private float width;
	@Associate
	private float height;
	@Associate
	private boolean textItem;
	
	public boolean isTextItem() {
		return textItem;
	}
	public void setTextItem(boolean textItem) {
		this.textItem = textItem;
	}
	public float getWidth() {
		return width;
	}
	public Integer getSkin() {
		return skin;
	}
	public void setSkin(Integer skin) {
		this.skin = skin;
	}
	public void setWidth(float width) {
		this.width = width;
	}
	public float getHeight() {
		return height;
	}
	public void setHeight(float height) {
		this.height = height;
	}
	public String getMsgType() {
		return msgType;
	}
	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}
	public Integer getCount() {
		return count;
	}
	public String getGroup_avatar() {
		return group_avatar;
	}
	
	public void setGroup_avatar(String group_avatar) {
		this.group_avatar = group_avatar;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public String getIdentification() {
		return identification;
	}

	public void setIdentification(String identification) {
		this.identification = identification;
	}

	public String getHead_pic() {
		return head_pic;
	}

	public void setHead_pic(String head_pic) {
		this.head_pic = head_pic;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public String getSwitchboard_id() {
		return switchboard_id;
	}

	public void setSwitchboard_id(String switchboard_id) {
		this.switchboard_id = switchboard_id;
	}

	public String getFromUser() {
		return fromUser;
	}

	public void setFromUser(String fromUser) {
		this.fromUser = fromUser;
	}

	public String getToUser() {
		return toUser;
	}

	public void setToUser(String toUser) {
		this.toUser = toUser;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public void setTo(String to) {
		this.to = to;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	

	public String getMsceneType() {
		return msceneType;
	}

	public void setMsceneType(String msceneType) {
		this.msceneType = msceneType;
	}

	

	public Timestamp getCreated_at() {
		return created_at;
	}

	public void setCreated_at(Timestamp created_at) {
		this.created_at = created_at;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}


//	public List<Reply> getReplyLists() {
//		return replyLists;
//	}
//
//	public void setReplyLists(List<Reply> replyLists) {
//		this.replyLists = replyLists;
//	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	public Integer getSourceType() {
		return sourceType;
	}

	public void setSourceType(Integer sourceType) {
		this.sourceType = sourceType;
	}

	public String getSourceId() {
		return sourceId;
	}

	public void setSourceId(String sourceId) {
		this.sourceId = sourceId;
	}

	public String getShareid() {
		return shareid;
	}

	public void setShareid(String shareid) {
		this.shareid = shareid;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}
	
	public String getFrom() {
		return from;
	}

	public String getTo() {
		return to;
	}

	public String getSourceName() {
		return sourceName;
	}

	public void setSourceName(String sourceName) {
		this.sourceName = sourceName;
	}

	@Override
	public String toString() {
		return "GroupMsg [id=" + id + ", from=" + from + ", to=" + to
				+ ", userId=" + userId + ", sourceType=" + sourceType
				+ ", msceneType=" + msceneType + ", sourceId=" + sourceId
				+ ", shareid=" + shareid + ", created_at=" + created_at
				+ ", content=" + content + ", img=" + img + ", error=" + error
				+ "]";
	}

}
